package com.peas.platform.module.icims.expenditure.expenses.controller.vo;

import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("事前用款申请单附件")
public class ExpenditureApplicationFileVo extends BaseVo {

    // （事前用款申请单表）外键
    @ApiModelProperty(value = "事前用款申请单ID", notes = "")
    @NotNull(message = "事前用款申请单ID不能为空")
    private Long expenditureApplicationId;

    @ApiModelProperty(value = "附件类型", notes = "")
    @Size(max = 20, message = "附件类型不能超过20个字符")
    private String attachmentType;

    // （附件表）外键
    @ApiModelProperty(value = "附件ID", notes = "")
    private Long attachmentId;

    @ApiModelProperty(value = "附件名称", notes = "")
    @Size(max = 200, message = "附件名称不能超过200个字符")
    private String attachmentName;

    @ApiModelProperty(value = "附件URL", notes = "")
    @Size(max = 500, message = "附件URL不能超过500个字符")
    private String attachmentUrl;

}
